package com.roc.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="t_profit_module")
public class ProfitModule implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -536329307447907582L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "profitModuleSeq")
	@SequenceGenerator(name = "profitModuleSeq", sequenceName = "t_profit_module_seq")
	private Long id;

	@Column(name = "MODULE_NAME")
	private String  moduleName; // 名称
	
	@Column(name = "REMARK")
	private String  remark; // 备注
	
	@Column(name = "AGENT_ID")
	private Long  agentId; // 代理商id
	
	@Column(name = "DT_CREATE")
	private Date  dtCreate; // 
	
	@Column(name = "DT_LASTMOD")
	private Date  dtLastmod; // 
	
	@Column(name = "OPERATORS")
	private String  operators; // 
	
	@Column(name = "AGENT_ACCOUNT")
	private String  agentAccount; // 代理商账号
	
	@Column(name = "PARAM_NAME2")
	private String  paramName2; // 待用参数1
	
	@Column(name = "STATUS")
	private String  status; // 状态

	@Transient
	private String  dtCreateStr; // 状态

	@Transient
	private  List<ProfitRuleModule> proList=new ArrayList<ProfitRuleModule>();
	
	@Transient
	private  List<ProfitPercentModule> profitPerList =new ArrayList<ProfitPercentModule>();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getAgentId() {
		return agentId;
	}

	public void setAgentId(Long agentId) {
		this.agentId = agentId;
	}

	public Date getDtCreate() {
		return dtCreate;
	}

	public void setDtCreate(Date dtCreate) {
		this.dtCreate = dtCreate;
	}

	public Date getDtLastmod() {
		return dtLastmod;
	}

	public void setDtLastmod(Date dtLastmod) {
		this.dtLastmod = dtLastmod;
	}

	public String getOperators() {
		return operators;
	}

	public void setOperators(String operators) {
		this.operators = operators;
	}

	public String getAgentAccount() {
		return agentAccount;
	}

	public void setAgentAccount(String agentAccount) {
		this.agentAccount = agentAccount;
	}

	public String getParamName2() {
		return paramName2;
	}

	public void setParamName2(String paramName2) {
		this.paramName2 = paramName2;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<ProfitRuleModule> getProList() {
		return proList;
	}

	public void setProList(List<ProfitRuleModule> proList) {
		this.proList = proList;
	}

	public List<ProfitPercentModule> getProfitPerList() {
		return profitPerList;
	}

	public void setProfitPerList(List<ProfitPercentModule> profitPerList) {
		this.profitPerList = profitPerList;
	}

	public String getDtCreateStr() {
		return dtCreateStr;
	}

	public void setDtCreateStr(String dtCreateStr) {
		this.dtCreateStr = dtCreateStr;
	}

}
